package com.item.audrey_hepburn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@SpringBootApplication
/*@CrossOrigin*/
@RestController
public class AudreyHepburnApplication {

    public static void main(String[] args) {
        SpringApplication.run(AudreyHepburnApplication.class, args);
    }

    @RequestMapping("kao")
    public String kao(HttpServletResponse response){
        response.setHeader("Access-Control-Allow-Origin", "*");
        response.setHeader("Cache-Control","no-cache");
        return "擦擦擦擦";
    }

} 
